<!DOCTYPE HTML>

<html>
<body>
<form method="POST"> 
	Name:
	{% if user %}
	<input type="text" name="name" value="{{ user.name }}" />
	<br/>
	<input type="hidden" name="openId" value="{{ user.openId }}"/>
	Student ID:
	<input type="text" name="stu_id" value="{{ user.stu_id }}" />
	<br/>
	Phone:
	<input type="text" name="phone" value="{{ user.phone }}"/>
	<br/>
	{% else %}
	<input type="text" name="name"/>
	<br/>
	<input type="hidden" name="openId" value="{{ openId }}"/>
	Student ID:
	<input type="text" name="stu_id"/>
	<br/>
	Phone:
	<input type="text" name="phone"/>
	<br/>
	{% endif %}
	<button type="submit">Submit</button>
</form>